package com.webserver.vo;

import java.io.Serializable;
import java.util.Objects;

public class Article implements Serializable {
    private String title;
    private String author;
    private String Articles;

    public Article() {
    }

    public Article(String title, String author, String articles) {
        this.title = title;
        this.author = author;
        Articles = articles;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getArticles() {
        return Articles;
    }

    public void setArticles(String articles) {
        Articles = articles;
    }

    @Override
    public String toString() {
        return "Article{" +
                "title='" + title + '\'' +
                ", author='" + author + '\'' +
                ", Articles='" + Articles + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Article article = (Article) o;
        return title.equals(article.title) &&
                author.equals(article.author) &&
                Articles.equals(article.Articles);
    }

    @Override
    public int hashCode() {
        return Objects.hash(title, author, Articles);
    }
}
